<%@page import="java.net.URLDecoder"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>易买网 - 首页</title> 
<link type="text/css" rel="stylesheet" href="/easyBuy170601/css/style.css" />
<script type="text/javascript" src="/easyBuy170601/scripts/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="/easyBuy170601/scripts/function.js"></script>
<script type="text/javascript">
$(function(){
		selectNew("1");
		IndexServlet("1");
		commodityClass();
		recentBrowse();	
	})
</script>
</head>
<body>
<div id="welcomeImage">
    <img width="100%" height="150" src="/easyBuy170601/images/banner.jpg" alt="welcome">
</div>
<div id="header" class="wrap">
	<div id="logo"><img src="images/logo.gif" /></div>
	<div class="help"><a href="/easyBuy170601/ShoppingCarInfoServlet" id="shoppingBag" class="shopping">购物车X件</a>
	 <%if(session.getAttribute("username")==null){ %>
	<a href="login.jsp">登录</a>
	<a href="reguser.jsp">注册</a>
	 <% }else{ %>
	 <%=session.getAttribute("username") %>
	 <a  href="CloseSerlvet">注销</a>
	 <%} %> 
	<a href="guestbook.html">留言</a>
	<c:if test="${UserRole==1}">
	<a href="manage/index.jsp">后台管理</a>
	</c:if>
	
	</div>
    <div class="navbar">
		<ul class="clearfix">
			<li class="current"><a href="#">首页</a></li>
			<li><a href="#">图书</a></li>
		</ul>
	</div>
</div>
<div id="childNav">
	<div class="wrap">
		<ul class="clearfix">
			<li class="first"><a href="#">音乐</a></li>
			<li><a href="<%=request.getContextPath() %>/123">影视</a></li>
			<li><a href="#">少儿</a></li>
			<li><a href="#">动漫</a></li>
			<li><a href="#">小说</a></li>
			<li><a href="#">饰品</a></li>
			<li class="last"><a href="#">Investor Relations</a></li>
		</ul>
	</div>
</div>
<div id="main" class="wrap">
	<div class="lefter">
		<div class="box">
			<h2>商品分类</h2>
			<dl>
				<!--  <dt>图书音像</dt>
				<dd><a href="product-list.html">图书</a></dd>
				<dd><a href="product-list.html">音乐</a></dd>
				<dt>百货</dt>
				<dd><a href="product-list.html">运动健康</a></dd>
				<dd><a href="product-list.html">服装</a></dd>
				<dd><a href="product-list.html">家居</a></dd>
				<dd><a href="product-list.html">汽车用品</a></dd> -->
			</dl>
		</div>
		<div class="spacer"></div>
		<div class="last-view">
			<h2>最近浏览</h2>
			<dl class="clearfix">
				<dt><img src="images/product/10_small.jpg" id="recentImg" width="54px" height="54px"/></dt>
				<dd><a href="product-view.jsp?commodityName=利仁2018M福满堂电饼铛&amp;inventory=99&amp;commodityPrice=199&amp;pictureSource=images/product/10.jpg&amp;commodityIntroduce=利仁2018M福满堂电饼铛,好用实惠199带回家，科技创新你值得拥有" onclick="recentAdd('利仁2018M福满堂电饼铛','images/product/10.jpg','product-view.jsp?commodityName=利仁2018M福满堂电饼铛&amp;inventory=99&amp;commodityPrice=199&amp;pictureSource=images/product/10.jpg&amp;commodityIntroduce=利仁2018M福满堂电饼铛,好用实惠199带回家，科技创新你值得拥有');" id="recentHref" target="_self">利仁2018M福满堂电饼铛 好用实惠</a></dd>
				<dt>&nbsp;</dt>
				<dd>&nbsp;</dd>
		  </dl>
	  </div>
	</div>
	<div class="main">
		<div class="price-off">
            <div class="slideBox">
                <ul id="slideBox">
                    <li><img src="images/product/banner_1.jpg"/></li>
                    <li><img src="images/product/banner_2.jpg"/></li>
                    <li><img src="images/product/banner_3.jpg"/></li>
                    <li><img src="images/product/banner_4.jpg"/></li>
                </ul>
            </div>
			<h2>商品列表</h2>
			<ul class="product clearfix" id="emp">
			<%-- <c:forEach items="${list}" var="emp">
				<li>
					<dl>
						<dt><a href="product-view.jsp?commodityName=${emp.commodityName}&inventory=${emp.inventory}&commodityPrice=${emp.commodityPrice}&pictureSource=${emp.pictureSource}&commodityIntroduce=${emp.commodityIntroduce}"  target="_self"><img src="${emp.pictureSource}" /></a></dt>
						<dd class="title"><a href="product-view.html" target="_self">${emp.commodityName}</a></dd>
						<dd class="price">￥${emp.commodityPrice}</dd>
					</dl>
				</li>
			</c:forEach> --%>
			</ul>
			<div class="clear"></div>
    <div class="pager">
		<ul class="clearfix">
			<li><span id="currentPage"></span></li>
			<li><a href="javascript:void(0)" id="firstPage" onclick="IndexServlet(1)">首页</a></li>
			<li><a href="javascript:void(0)" id="upPage">上一页</a></li>
			<li><a href="javascript:void(0)" id="downPage">下一页</a></li>
			<li><a href="javascript:void(0)" id="endPage">末页</a></li>
		</ul>
  </div>
		</div>
		<div class="side">			
			<div class="spacer"></div>
			<div class="news-list">
				<h4>新闻动态</h4>
				<ul id="new_head">
				</ul>
			</div>
		</div>
		<div class="spacer clear"></div>
    </div>
</div>

<div id="footer">


	Copyright &copy; 2017云和学院 All Rights Reserved. 京ICP证1000001号</div>
</body>
</html>

